from def_pack.get_the_frame_program import get_frame_program, multi_thread_to_copyfind_book
from def_pack.read_simple import read_simple_noval
from config import BASC

def book_copy_find_interface(novalfile,beginstr,type1,tetype2):
    docxname = "筛选关键字的"
    filename = read_simple_noval(BASC, novalfile, type=type1)
    get_frame_program(beginstr, filename, docxname, BASC, tetype=tetype2)

#再生成全文，不搜索的
def no_search_way(novalfile):
    beginstr=""
    book_copy_find_interface(novalfile, beginstr, type1=1, tetype2=1)

#看省略不搜索的
def simple_read_no_search_way(novalfile):
    beginstr = ""
    book_copy_find_interface(novalfile, beginstr, type1=0, tetype2=1)

#再生成全文，搜索的
def search_way(novalfile, beginstr):
    book_copy_find_interface(novalfile, beginstr, type1=1, tetype2=0)

#看省略搜索的
def simple_read_search_way(novalfile, beginstr):
    book_copy_find_interface(novalfile, beginstr, type1=0, tetype2=0)


if __name__ == '__main__':



    pass
